run through (someone's) mind

Translations
пробегать в (чьей-то) голове
The idea kept running through my mind all day.
Эта идея весь день пробегала у меня в голове.
Definitions
To be repeatedly thought about or considered by someone; to occupy someone's thoughts for a period of time.